Skip to content

fix: add operator resource defaults#15

Merged
patrickleet merged 1 commit into
mainfrom
feat/operator-resource-defaults
May 25, 2026
Merged

fix: add operator resource defaults#15
patrickleet merged 1 commit into
mainfrom
feat/operator-resource-defaults

Conversation

@patrickleet
Copy link
Copy Markdown
Contributor

Summary

  • add CNPG operator default requests/limits
  • add Atlas operator default requests/limits
  • tune the scale-to-zero controller resources
  • extend stack render tests for the defaults

Verification

  • make test: 38/38 passed
  • Colima: PSQLStack/default psql is Synced=True Ready=True
  • Colima: Helm Releases cloudnative-pg and atlas-operator are Synced=True Ready=True with the rendered resources
  • Target aws/hops/pat-local: deployment cnpg-system/cloudnative-pg has requests cpu=23m memory=138Mi and limits cpu=200m memory=512Mi, 1/1 ready
  • Target aws/hops/pat-local: deployment cnpg-system/atlas-operator has requests cpu=15m memory=100Mi and limits cpu=100m memory=256Mi, 1/1 ready
  • Target aws/hops/pat-local: deployment cnpg-system/scale-to-zero has requests cpu=15m memory=100Mi and limits cpu=100m memory=256Mi, 1/1 ready

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 25, 2026

Warning

Review limit reached

@patrickleet, we couldn't start this review because you've used your available PR reviews for now.

Your plan includes 1 review of capacity. Refill in 45 minutes and 38 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 5c29cf76-1bf3-4ed6-83ed-ec33775eab44

📥 Commits

Reviewing files that changed from the base of the PR and between 66d7a24 and 4bbb123.

📒 Files selected for processing (4)
  • functions/stack/200-cnpg-operator.yaml.gotmpl
  • functions/stack/210-cnpg-scale-to-zero.yaml.gotmpl
  • functions/stack/220-atlas-operator.yaml.gotmpl
  • tests/test-stack/main.k
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/operator-resource-defaults

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

Published Crossplane Package

The following Crossplane package was published as part of this PR:

Package: ghcr.io/hops-ops/psql-stack:pr-15-7845917164cda49d4d25175b8e6477047c72adf4

View Package

@patrickleet patrickleet merged commit c85c91e into main May 25, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant